<?php
	require_once("../../oh.framework/oh.framework.php");
	oh("config")->file("config.php");

	$tabs = oh("frecord")->get(oh("config.file"));
	$tabs[] = "option|option.php";
?>
<html>
<head>
	<?php echo oh("css")->link("style.css"); ?>
<script>
	function menu(idm,tot) {
		var cols = new Array();
		for (i=0;i<tot;i++) cols[i]="0";
		cols[idm]="*";
		cols = cols.join(",");
		top.document.getElementById("panels").cols = cols;
	}
</script>
</head>
<body class="reset">
<?php
			$idm = 0;
			$cnt = count($tabs);
			foreach($tabs as $k=>$tab) {
				$tab = explode("|",$tab);
				echo '<a href="#" onclick="menu('.$idm.','.$cnt.');">'.$tab[0].'</a>';
				$idm++;				
			}
		?>
</body>
</html>
